<div class="row">
	<div class="panel callout">
		<h5>List of Unverified Enrollees</h5>
	</div>
	<?if(isset($system_message))echo $system_message;?>

	<fieldset>
	<legend class="label">Search Form</legend>
	<?php 
		$formAttrib = array('id' => 'addroom', 'class' => 'custom');
		$levelAttrib = array('' => 'Select student level..');
		$searchItm = array('name' => 'search_string_item[search_itm]', set_value("search_string_item[search_itm]"), 'id' => 'search_itm');
		echo form_open('search/unverified', $formAttrib);
	?>
	
	<div class="row">
		<div class="small-5 columns">
			<div class="row collapse">
				<div class="small-6 large-4 columns">
				  <span class="prefix">Name or ID Number</span>
				</div>
				<div class="small-6 large-8 columns">
				  <?php echo form_input($searchItm);?>
				</div>
			 </div>
		</div>
		<div class="small-5 columns">
			<?php
				if(!empty($levels))
				{
				echo form_dropdown('search_string_item[level_id]', $levels,set_value('search_string_item[level_id]'),'id="customDropdown1" class="medium"');		
				}else{
					echo 'No Levels found <br></br>';
				}
			?>
		</div>
		<div class="small-2 columns">
			<?php echo form_submit('search', 'Search Student','class="button tiny"'); ?>
		</div>
	</div>
	</fieldset>
</div>

<div class="row">
	<fieldset>
	<legend class="label">Search Results:</legend>
	<?=$links;?>
	<?if(!empty($students)):?>
		<table class="table table-striped table-hover">
		<thead>
		<tr>
			<th>IDNO</th>
			<th>Student Name</th>
			<th>Grade Level</th>
			<th>&nbsp;</th>
			<th>&nbsp;</th>
		</tr>
		</thead>
		<tbody>
		<?foreach($students as $student):?>
			<tr>
				<td><?=$student->idno?></td>
				<td><?=ucwords($student->fullname);?></td>
				<td><?=strtoupper($student->level_code).' - '.$student->level_desc;?></td>
				<td colspan="2">
					<ul>
						<li><a href="<?=site_url('profile/student/'.$student->enrollment_id);?>">View Profile</a></li>
						<li><a href="<?=site_url('fees/view_fees/'.$student->enrollment_id);?>">View Fees</a></li>
					</ul>
				</td>
			</tr>
		<?endforeach;?>
		</tbody>
		</table>
	<?else:?>
		<div class="alert-box">
			<i class="icon-exclamation-sign icon-white"></i> Nothing found!
		</div>
	<?endif;?>
	<?=$links;?>
	</fieldset>
</div>
